<table style="width:100%; height:100%;"><tr><td style="text-align:center; vertical-align:middle">
        <form action="<?= $_SERVER['PHP_SELF']?>" method="POST">
        <div class="box" style="width:500px;">
            <div class="title"><?= $title ?></div>            
            <?
                if(isset($errors)){
                    echo "<div class=\"errors\"><ul>";
                    foreach($errors as $error) {
                        echo "<li>$error</li>";
                    }
                    echo "</ul></div>";
                }
            ?>            
            <div class="line">
                <span style="width:70px;">Название:</span>
                <input style="width:370px;" type="text" name="name" value="<?= Arr::get($data, 'name') ?>"/>
            </div>
            <div class="line">
                <span style="width:70px;">Ссылка:</span>
                <input style="width:370px;" type="text" name="href" value="<?= Arr::get($data, 'href') ?>"/>
            </div>
            <input type="hidden" name="id_parent" value="<?= Arr::get($data, 'id_parent', 0)?>">
            <input type="hidden" name="id" value="<?= Arr::get($data, 'id', 0)?>">
            <div class="toolbar">
                <input type="submit" value="<?= $button ?>">
            </div>            
        </div>
        </form>
        </td></tr></table>